package actions.manager;

import java.util.ArrayList;
import java.util.List;

import veilingDomein.Bieding;
import veilingService.IBiedingService;
import veilingService.ServiceProvider;

import com.opensymphony.xwork2.ActionSupport;

public class BiedingDashboard extends ActionSupport {

	List<Bieding> biedingenVandaag = new ArrayList<Bieding>();
	List<Bieding> biedingenWeek = new ArrayList<Bieding>();
	List<Bieding> biedingenMaand = new ArrayList<Bieding>();
	IBiedingService ibs = ServiceProvider.getBiedingService();

	
	public String execute(){
		biedingenVandaag = ibs.getHoogsteBiedingen("vandaag");
		biedingenWeek = ibs.getHoogsteBiedingen("week");
		biedingenMaand = ibs.getHoogsteBiedingen("maand");
		return SUCCESS;
	}
	
	
	public List<Bieding> getBiedingenVandaag() {
		return biedingenVandaag;
	}
	
	public List<Bieding> getBiedingenWeek() {
		return biedingenWeek;
	}
	
	public List<Bieding> getBiedingenMaand() {
		return biedingenMaand;
	}

}
